package ua.yandex.skipass;

import java.util.Date;

/**
 *
 * @author Кирилл
 */

public enum SkiPassTimeShedule {
    HALF_DAY(4),
    DAY(24), 
    TWO_DAYS(48),
    FIVE_DAYS(60);
    
    private int hours;
    private static final int HOURS_TO_MILLISEC = 60 * 60 * 1000;
    
    SkiPassTimeShedule(int hours) {
        this.hours = hours;
    }
    
    Date getTimeFromNow() {
        Date currentDate = new Date(System.currentTimeMillis() + 
                                    (long) hours * HOURS_TO_MILLISEC);
        return currentDate;
    }
}
